package com.wonderful.mall.search.vo;

import lombok.Data;

import java.util.List;

/**
    封装页面可能传递来的所有查询条件
    catalog3Id=225&keyword=?&sort=saleCount_desc
 */
@Data
public class SearchParam {
    private String keyword;
    private Long catalog3Id;
    /**
     * 排序条件
     * sort=saleCount_asc/desc
     * sort=skuPrice_asc/desc
     * sort=hotScore_asc/desc
     */
    private String sort;
    /**
     * 排序条件
     * hasStock\skuPrice\brandId\catalog3Id\attrs\
     */
    private Integer hasStock;
    private String skuPrice;
    private List<Long> brandId;
    private List<String> attrs;
    private Integer pageNum = 1;

    /**
     * 原生的所有查询条件
     */
    private String _queryString;
}
